HOW I MAKE AND LOAD

If you have looked at the commands, you will see before you add anything to a hash table, you need to "make" the hash table to begin with. This is acheived threw the command "hmake"

Since with hash tables you have to make the table and then load the previous table that you saved before. I use a alias like the one below to acheive this.

alias fserv.main.make { hmake fserv.main | hload fserv.main $+(",$scriptdirhashtables\fservmain.hsh,") }

As you can see, this makes a hash table called fserv.main and loads into that table, the contents found in fservmain.hsh .

To explain the $+(",$scriptdirhashtables\fservmain.hsh,") part . The remote that you are codeing into, is obviouslly stored in a specfic folder within your main mirc directory. The $scriptdir command takes you straight to that folder. Hense I have everything in a folder marked System. Within that folder is the remote .mrc file that im codeing on. Also within the System folder is another folder marked hashtables. The codeing above for $scriptdir, will go straight to the folder system which contains my .mrc file and then go into the hashtable folder and will look for the fservmain.hsh file in there. The $+(",,") part makes this work when there spaces in the path as well.

Now here I'll get you to run a test here

In your mirc type /hmake -s testing

You should see * Made hash table 'testing' (100)

The (100) part is what im interested in here. When you make a hash table, you can define a number which dictates how many items you can add to the table. But with what you just typed. i didn't define a number there, so mirc used the default number of 100 which equals 1000 items that can be added. I never bother with adding a number in as the default number is always going be more than sufficent.

To define a number of items, You would do this

/hmake -s testing 50

This means you can add 500 items then

Last thing, in your codeing, i would advise not having the -s switch, as this shows the hash table being made and loaded, which users of the addon or script your making, won't wish to see this all the time